//
//  WPCPreviewView.h
//  Wallpaper.co
//
//  Created by zhou_yuepeng on 2017/9/6.
//  Copyright © 2017年 www.dahuatech.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WPCThemesItem;
typedef void (^CALLBACK)(WPCThemesItem *item);
@protocol WPCPreviewViewDelegate <NSObject>
- (void)doShare:(CALLBACK)callback;
- (void)doDownload:(CALLBACK)callback;
- (void)doFavorite:(CALLBACK)callback;
@end

@interface WPCPreviewView : UIView
@property (nonatomic, weak) id<WPCPreviewViewDelegate> delegate;

- (void)setThumbnailURL:(NSURL*)thumbnailURL originalPicURL:(NSURL*)originalPicURL;
- (void)setTitle:(NSString*)title;
- (void)setIsFavorite:(BOOL)isFavorite;
@end
